package com.fdb.basic.framework.core.constant;

import java.util.HashMap;
import java.util.Map;
/**
 * 输出时网贷字段值向ESB标准字段值的转换
 * @author  zhoucs1
 * @version 1.0
 * @since   2019年4月23日 上午11:34:27
 */

public class SedNlsToEsbConstant {
	
	public final static Map<String,String> TERM_TYPE_MAP; //期限类型
	public final static Map<String,String> ASSURE_MEAN_MAIN_MAP; //担保方式
	public final static Map<String,String> CURRENCY_TYPE_MAP; //币种
	public final static Map<String,String> REPAYMENT_MODE_MAP; //还款方式
	
	static {
		
		TERM_TYPE_MAP = new HashMap<String,String>();
		TERM_TYPE_MAP.put("01","D");
		TERM_TYPE_MAP.put("02","M");
		TERM_TYPE_MAP.put("03","Y");
		
		ASSURE_MEAN_MAIN_MAP = new HashMap<String,String>();
		ASSURE_MEAN_MAIN_MAP.put("00","A");
		ASSURE_MEAN_MAIN_MAP.put("10","B");
		ASSURE_MEAN_MAIN_MAP.put("20","C");
		ASSURE_MEAN_MAIN_MAP.put("30","D");
		
		CURRENCY_TYPE_MAP = new HashMap<String,String>();
		CURRENCY_TYPE_MAP.put("CNY", "156");
		
		REPAYMENT_MODE_MAP = new HashMap<String,String>();
		REPAYMENT_MODE_MAP.put("FB01", "3");
		REPAYMENT_MODE_MAP.put("FB02", "2");
		REPAYMENT_MODE_MAP.put("FB03", "1");
		REPAYMENT_MODE_MAP.put("FB99", "4");

		
	}

}
